home *** CD-ROM | disk | FTP | other *** search
- # ALLIED ACCESS, INC. TRUMPET LOGIN.CMD FILE
- #
- #trace on
- #
- # set up some strings for dialling up
- #
- $number = "684-2061"
- $username = "your username here"
- $password = "your password here"
- $modemsetup = "your init string here"
- $prompt = ">"
- $userprompt = "ogin:"
- $passprompt = "assword:"
- $slipcmd = "slip"
- $addrtarg = "Your address is"
- $pppcmd = "ppp"
-
- %attempts = 10
- #
- #
- #----------------------------------------------------------
- #
- # initialize modem
- #
- output "atz"\13
- if ! [input 10 OK\n]
- display "Modem is not responding"\n
- abort
- end
- #
- # setup our modem commands
- #
- output $modemsetup\13
- input 10 OK\n
- #
- # send phone number
- #
- %n = 0
- repeat
- if %n = %attempts
- display "Too many dial attempts"\n
- abort
- end
- # *****************************************************
- # * Pour une ligne α pulsion, remplacer atdt par atdp *
- # *****************************************************
- output "ATDT "$number\13
- %ok = [input 60 CONNECT]
- %n = %n + 1
- until %ok
- input 10 \n
- #
- # wait till it's safe to send because some modem's hang up
- # if you transmit during the connection phase
- #
- wait 45 dcd
- #
- # now prod the terminal server
- #
- output \13
- #
- # wait for the username prompt
- #
- input 30 $userprompt
- sleep 3
- output $username\13
- #
- # and the password
- #
- input 30 $passprompt
- sleep 3
- output $password\13
- #
- # we are now logged in
- #
- sleep 4
- #
- # now we are finished.
- #